<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header">Dự án</h1>
	</div>
	<!-- /.col-lg-12 -->
    <div class="col-lg-12">
        
	</div>
	
</div>

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                Danh sách dự án của <span style="font-weight:bold;"> <?php echo $user_report->fullname; ?></span>
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th>#</th>
                                <th>Tên dự án</th>
                                <th>Người tham gia</th>
                                <th>Bắt đầu</th>
                                <th>Kết thúc</th>
                                <th>Thời gian tạo</th>
                                <th>Người tạo</th>
                                <th colspan="4" style="text-align:center">Tác vụ</th>
                            </tr>
                        </thead>
                        <tbody>
                        <?php if($page_current != 0){
                            	   $page_current = $page_current - 1;
                            	}
                                 
                                $i = 1;
                                
                                foreach($data AS $key => $value):
                                $stt = $page_current * $_per_page + $i;?>
                            <tr>
                                <td><?php echo $stt;?></td>
                                <td><?php echo $value->project_name;?></td>
                                <td><?php echo $value->users;?></td>
                                <td><?php echo $value->start;?></td>
                                <td><?php echo $value->end;?></td>
                                <td><?php echo $value->created1;?></td>
                                <td><?php echo $value->user_created;?></td>
                              
                                <td><a href="<?php echo $baseurl.'report-user/list-module?id='.$value->id."&us=".$user_report->id;?>">Báo cáo</a></td>
                                <td><a href="<?php echo $baseurl.'report-project?id='. $value->id?>">Biểu đồ</a></td>
                            </tr>
                        <?php $i++; endforeach;?>
                        </tbody>
                    </table>
                </div>
                <!-- /.table-responsive -->
                
                <div class="pagination">
                    <?php echo $this->pagination->create_links();?>
                </div>
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>

<style type="text/css">
    .pagination strong,
    .pagination a{
        display: inline-block;
        padding: 5px 9px;
        margin: 0 5px;
    }
    .pagination a{
        cursor: pointer;
        border: 1px solid #337ab7;
    }
    .pagination strong{
        border: 1px solid #535353;
        background-color: #fafafa;
    }
</style>